package com.jy.shenghuilogistics.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.jy.shenghuilogistics.bean.Document;
import com.jy.shenghuilogistics.bean.Logininfo;

import java.util.List;

@Mapper
@Repository
public interface DocumentMapper {

    Integer inTransitOrderNum(@Param("empId")int empId);//运送中订单数

    Integer allOrderNum(@Param("empId")int empId);//总订单数

    Integer offTheStocksOrderNum(@Param("empId")int empId);//已完成订单数

    List<Document> selAllDocByCondition(Document doc);

    List<Document> selDocumentGT30(int id);

    List<Document> selDocumentD30(int id);

    Integer insDoc(Document d);

    Integer insLoginInfo(Logininfo l);

    Document selDocumentById(int id);

    List<Logininfo> selLoginInfoById(Integer id);

    /**
     * 获取对应站点所有运单
     * @param siteName
     * @return
     */
    List<Document> selAllDocBySiteId(String siteName);

    List<Integer> selSevenDayDocBySite(@Param("siteName") String siteName);

    Integer updDoc(Document d);

    List<Document> selAllDoc(Document d);
}
